#!/bin/bash
sum=0
for i in $(/disk2/kafka_2.10-0.8.2.2/bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list 10.1.235.5:9092,10.1.235.6:9092,10.1.235.10:9092,10.1.235.11:9092 --time -1 --topic gw-huineng |awk -F '[::]' '{print $3}')
do
sum=`expr $sum + $i`
echo $sum
done
